package org.flik.client.main.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;

public class TicketChangeEvent extends GwtEvent<TicketChangeEvent.Handler> {


    public static final Type<Handler> TYPE = new Type<TicketChangeEvent.Handler>();

    public interface Handler extends EventHandler {
        void onChange();
    }

    public TicketChangeEvent() {
    }

    @Override
    public Type<Handler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(Handler handler) {
        handler.onChange();
    }
}
